//
//  ViewController.m
//  AnimationDemo
//
//  Created by iMuse on 15-7-8.
//  Copyright (c) 2015年 mySelf. All rights reserved.
//

#import "ViewController.h"
#import "MenuAimationView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    UITapGestureRecognizer * tapGuesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapView:)];
    [self.view addGestureRecognizer:tapGuesture];

}

-(void)tapView:(id)sender
{
 
    NSArray* array1 = [NSArray arrayWithObjects:@"洗衣",@"买衣服",@"私人定制",@"随便看看", nil];
    NSArray* array2 = [NSArray arrayWithObjects:@"食品1",@"食品2",@"食品3",@"食品4",@"食品5",@"食品6",@"食品7",@"食品8",nil];
    NSArray* array3 = [NSArray arrayWithObjects:@"住房1",@"住房2",@"住房3",@"住房4",@"住房5",@"住房6",@"住房7",@"住房8", nil];
    NSArray* array4 = [NSArray arrayWithObjects:@"行1",@"行2", @"行3",@"行4", @"行5",@"行6", @"行7",@"行2", @"行8",@"行9", nil];
    
    NSMutableDictionary * dictionary = [[NSMutableDictionary alloc] init];
    [dictionary setObject:array1 forKey:@"衣"];
    [dictionary setObject:array2 forKey:@"食"];
    [dictionary setObject:array3 forKey:@"住"];
    [dictionary setObject:array4 forKey:@"行"];
    
    [MenuAimationView AniamtionMenuAction:dictionary andBlock:^(NSString* str1,NSString*str2){
        
        NSLog(@"%@,%@",str1,str2);
        
    }];
 
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    
}

@end
